/**
 */
package org.karelun.whiteboard.impl;

import org.eclipse.emf.ecore.EClass;

import org.karelun.whiteboard.Colored;
import org.karelun.whiteboard.Decorator;
import org.karelun.whiteboard.LineType;
import org.karelun.whiteboard.Location;
import org.karelun.whiteboard.Prismatic;
import org.karelun.whiteboard.WhiteboardPackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Prismatic</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getColor <em>Color</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getLineStyle <em>Line Style</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getLineWidth <em>Line Width</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getTopPointA <em>Top Point A</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getTopPointB <em>Top Point B</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getTopPointC <em>Top Point C</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.PrismaticImpl#getTopPointD <em>Top Point D</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class PrismaticImpl extends GraphImpl implements Prismatic {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PrismaticImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return WhiteboardPackage.Literals.PRISMATIC;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getColor() {
		return (Integer)eGet(WhiteboardPackage.Literals.COLORED__COLOR, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setColor(int newColor) {
		eSet(WhiteboardPackage.Literals.COLORED__COLOR, newColor);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LineType getLineStyle() {
		return (LineType)eGet(WhiteboardPackage.Literals.DECORATOR__LINE_STYLE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLineStyle(LineType newLineStyle) {
		eSet(WhiteboardPackage.Literals.DECORATOR__LINE_STYLE, newLineStyle);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getLineWidth() {
		return (Integer)eGet(WhiteboardPackage.Literals.DECORATOR__LINE_WIDTH, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLineWidth(int newLineWidth) {
		eSet(WhiteboardPackage.Literals.DECORATOR__LINE_WIDTH, newLineWidth);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getTopPointA() {
		return (Location)eGet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_A, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setTopPointA(Location newTopPointA) {
		eSet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_A, newTopPointA);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getTopPointB() {
		return (Location)eGet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_B, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setTopPointB(Location newTopPointB) {
		eSet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_B, newTopPointB);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getTopPointC() {
		return (Location)eGet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_C, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setTopPointC(Location newTopPointC) {
		eSet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_C, newTopPointC);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getTopPointD() {
		return (Location)eGet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_D, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setTopPointD(Location newTopPointD) {
		eSet(WhiteboardPackage.Literals.PRISMATIC__TOP_POINT_D, newTopPointD);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
		if (baseClass == Colored.class) {
			switch (derivedFeatureID) {
				case WhiteboardPackage.PRISMATIC__COLOR: return WhiteboardPackage.COLORED__COLOR;
				default: return -1;
			}
		}
		if (baseClass == Decorator.class) {
			switch (derivedFeatureID) {
				case WhiteboardPackage.PRISMATIC__LINE_STYLE: return WhiteboardPackage.DECORATOR__LINE_STYLE;
				case WhiteboardPackage.PRISMATIC__LINE_WIDTH: return WhiteboardPackage.DECORATOR__LINE_WIDTH;
				default: return -1;
			}
		}
		return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
		if (baseClass == Colored.class) {
			switch (baseFeatureID) {
				case WhiteboardPackage.COLORED__COLOR: return WhiteboardPackage.PRISMATIC__COLOR;
				default: return -1;
			}
		}
		if (baseClass == Decorator.class) {
			switch (baseFeatureID) {
				case WhiteboardPackage.DECORATOR__LINE_STYLE: return WhiteboardPackage.PRISMATIC__LINE_STYLE;
				case WhiteboardPackage.DECORATOR__LINE_WIDTH: return WhiteboardPackage.PRISMATIC__LINE_WIDTH;
				default: return -1;
			}
		}
		return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
	}

} //PrismaticImpl
